package com.huawei.appgallery.packagemanager.impl.uninstall.control;

import android.content.Context;
import android.content.pm.IPackageDeleteObserver.Stub;
import android.os.RemoteException;
import com.huawei.appgallery.packagemanager.api.bean.ManagerTask;
import o.cnu;
import o.cpu;

public class PackageUninstallObserver extends Stub {
    private static final String TAG = "PackageUninstallOb";
    private Context mContext;
    private ManagerTask task;

    public PackageUninstallObserver(Context context, ManagerTask managerTask) {
        this.mContext = context.getApplicationContext();
        this.task = managerTask;
    }

    public void packageDeleted(String str, int i) throws RemoteException {
        cnu.ˏ.ˋ(TAG, " package uninstall callback:packageName:" + str + ",returnCode:" + i);
        cpu.ॱ(this.mContext, this.task.packageName, i, this.task.taskId, 0);
    }
}
